package com.zh.model.task.home;

import java.io.Serializable;

/**
 * @author EnzoChan
 * @create 2019/8/28
 * @desc:
 */
public class RemoteOpenResVO implements Serializable {

    /**
     * 是否成功，0-成功，1-失败
     */
    private Integer code;


    /**
     * 错误信息
     */
    private String msg;


    /**
     * 教师ID
     */
    private Integer teacherId;

    private Integer cabinetNum;

    private String equipmentCode;

    public Integer getCabinetNum() {
        return cabinetNum;
    }

    public void setCabinetNum(Integer cabinetNum) {
        this.cabinetNum = cabinetNum;
    }

    public String getEquipmentCode() {
        return equipmentCode;
    }

    public void setEquipmentCode(String equipmentCode) {
        this.equipmentCode = equipmentCode;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }


    private RemoteOpenResVO newSuccessBean(Integer teacherId) {
        this.code = 0;
        this.teacherId = teacherId;
        return this;
    }


    private RemoteOpenResVO newErrorBean(Integer teacherId, String msg) {
        this.code = 1;
        this.teacherId = teacherId;
        this.msg = msg;
        return this;
    }
}
